package com.chenyi.system.domain;

import com.chenyi.common.annotation.Excel;
import com.chenyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 广告管理对象 adver
 * 
 * @author qinggeng
 * @date 2020-02-12
 */
@Data
public class SysAdver extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long adverId;

    /** 广告位置 */
    private Long positionId;

    @Excel(name = "广告位置")
    private String positionName;

    /** 形式 */
    @Excel(name = "形式")
    private Integer mediaType;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String adverImg;

    /** 跳转地址 */
    @Excel(name = "跳转地址")
    private String adverHref;

    /** 跳转类型(1.外部链接2.内部链接 */
    private String adverType;

    @Excel(name = "跳转类型")
    private String adverTypeName;

    /** 帐号状态（0正常 1停用） */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    private String status;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("adverId", getAdverId())
            .append("positionId", getPositionId())
            .append("mediaType", getMediaType())
            .append("title", getTitle())
            .append("adverImg", getAdverImg())
            .append("adverHref", getAdverHref())
            .append("adverType", getAdverType())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
